<?php date_default_timezone_set("Asia/Calcutta");?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta name="apple-mobile-web-app-capable" content="yes" />
<link href="<?= $this->config->base_url(); ?>assets/css/bootstrap-responsive.css" rel="stylesheet">

<title><?php echo $page_title ?></title>
<!-- css file -->
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/bootstrap-red.css" type="text/css" charset="utf-8" />

<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jasny-bootstrap.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/site.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/fullcalendar.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/datepicker.css" type="text/css" charset="utf-8" />

<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/table.css" type="text/css" charset="utf-8" />

<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/pform.css" type="text/css" charset="utf-8" />

<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/chosen.css" type="text/css" charset="utf-8" />

<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/font-awesome.min.css" type="text/css" charset="utf-8" />

<!-- javascripts file -->
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.8.1.min.js"></script>



<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/bootstrap.min.js"></script>


<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery.clock.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/fullcalendar.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery.dataTables.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery.psteps.min.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery.timer.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/bootstrap-timepicker.min.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/chosen.jquery.js"></script>


<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/function.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/steps.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.js"></script>

<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/common.js"></script>
</head>
<body>

<div class="container-fluid">

<!-- The loading box -->
	<div id="loading-overlay"></div>
	<div id="loading">
		<span>Loading...</span>
	</div>
	<!-- End of loading box -->
<!-- Errors -->
<div class="navbar navbar-fixed-top">
              <div class="navbar-inner">
                <div class="container" style="width: auto; padding: 0 20px;">
                  <a class="brand" href="#">Fedobe</a>
                  <ul class="nav">
      <?php if($this->ion_auth->is_admin())
{?>            
                    <li><a href="<?= site_url('founder/founder');?>">Dashboard</a></li>
                     <li class="dropdown">
                     <a class="dropdown-toggle" data-toggle="dropdown" href="<?= site_url('home/home');?>"><span class="badge badge-success">6</span> Notification <b class="caret"></b></a> 
                       <ul class="dropdown-menu">
                       <li><a href="#">sadasd</a></li>
                       <li class="divider"></li>
                       <li><a href="#">more</a></li>
                       </ul>
                     </li>
                     <?php }?>
                       <?php if($this->ion_auth->in_group('members'))
{?>            
                    <li><a href="<?= site_url('user/user');?>">Dashboard</a></li>
                     <li><a href="<?= site_url('user/user');?>"><span class="badge badge-important">6</span> Notification </a> </li>
                     <?php }?>
                                       </ul>
                                       
                 <ul class="nav pull-right">
<li><a href="#"><i class="icon-user"></i> Edit Profile</a></li>
                    <li class="dropdown">
                      
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-white"></i> Settings <b class="caret"></b></a>
                        <ul class="dropdown-menu"> <?php if($this->ion_auth->is_admin())
{?>                   
                         <li><a href="<?= site_url('founder/user/user_type');?>">Create User Type</a></li>   
                         <li><a href="<?= site_url('founder/user/department');?>">Create Department</a></li>
                                                   
                         <li><a href="<?= site_url('user/tasks/default_milestone');?>">Create default milestones</a></li>
                         <li><a href="<?= site_url('user/tasks/default_taskgroup');?>">Create default task groups</a></li>   
                           
                          <li class="divider"></li>
                          <li><a href="#">Help</a></li>
                          <?php }?> 
                        </ul>
                      
                      </li>                     
                      <li><a href="<?= site_url('auth/logout');?>">Logout</a></li>
                    </ul> 
                </div>
              </div>
            </div>
          
<!-- Menu -->
<!--<h2>Welcome <?= $this->session->userdata('username');?></h2>-->

<div class="row-fluid">
<div class="span2">
<div >
<ul class="nav nav-list" id="my-collapse-nav">
  <li><a href="<?php if(!$this->ion_auth->is_client()){echo site_url('user/wall');}?>">
  <?php if(!$this->session->userdata('profile_image'))
  {?>
	 <img class="img-polaroid" src="<?= $this->config->base_url();?>assets/images/users.png" /><br>
  <?php } else { ?>
	<img class="img-polaroid" width="50" src="<?= $this->config->base_url();?>assets/uploads/<?= $this->session->userdata('profile_image');?>" /><br>  
  <?php }?>
  

<?= $this->session->userdata('username');?></a>

  </li>
   <li class="divider"></li> 
 

   <?php if($this->ion_auth->is_admin())
{?>
<li><a href="<?= site_url('founder/founder');?>"><i class="icon-home"></i>Dashboard</a></li>  
 <li><a href="<?= site_url('founder/goals');?>"><i class="icon-screenshot"></i>Goals</a></li> 
<li class="nav-header"> Project Management</li>
<li><a href="<?= site_url('founder/tasks')?>" class="active"><i class="icon-tasks"></i >All Task</a></li>
<li><a href="<?= site_url('user/tasks/create_task')?>"><i class="icon-plus"></i>Create Task</a></li>

<li class="nav-header"><i class="icon-user"></i> HRM</li>
<li><a href="<?= site_url('founder/user/add_user')?>" ><i class="icon-plus"></i> Create User</a></li>
<li><a href="<?= site_url('founder/user/get_all_user')?>" data-target="#demo"><i class="icon-eye-open"></i> User</a>
<ul id="demo" class="collapse" style="height: 0px;">
<li><a href="#">adas</a></li>
</ul>
</li>

<li><a href="<?= site_url('founder/salary')?>" ><i class="icon-usd"></i> View Salary</a></li>
<li><a href="<?= site_url('founder/leave_management');?>" >Leave</a></li> 
<li><a href="<?= site_url('user/tasks/projects');?>">Project Wizard</a></li>
<ul>
<li><a href="<?= site_url('user/tasks/projects_details');?>">Projects details</a></li>
</ul>
<li><a href="<?= site_url('user/tasks/my_projects');?>">My Projects</a></li>
<li><a href="<?= site_url('user/tasks');?>">My Tasks</a></li>
<li><a href="<?= site_url('user/worksheet/index').'/'.$this->session->userdata('user_id').'/'.date('y').'/'.date('m');?>">My Worksheet</a></li>

<?php } elseif($this->ion_auth->is_client()){ ?>
<li><a href="<?= site_url('client/client');?>"><i class="icon-home"></i>Dashboard</a></li>  
<li><a href="<?= site_url('user/tasks/my_projects');?>">My Projects</a></li>	
<?php }else { ?>
<li><a href="<?= site_url('user/user');?>"><i class="icon-home"></i>Dashboard</a></li>  
<li><a href="<?= site_url('user/goals');?>"><i class="icon-screenshot"></i> My Goals</a></li>
<li><a href="<?= site_url('user/attendance/index').'/'.date('y').'/'.date('m');?>">Attendance</a></li>
<li><a href="<?= site_url('user/leave');?>">Request For Leave</a></li>
<li><a href="<?= site_url('user/tasks/my_projects');?>">My Projects</a></li>
<li><a href="<?= site_url('user/tasks');?>">My Tasks</a></li>
<li><a href="<?= site_url('user/worksheet/index').'/'.$this->session->userdata('user_id').'/'.date('y').'/'.date('m');?>">My Worksheet</a></li>

<?php }?>

<!--Common menus-->

<?php if( $this->ion_auth->in_user_type(array("caller")) || $this->ion_auth->in_group('founder')) {?>
<li class="nav-header">Proposal</li>
<li><a href="<?= site_url('user/proposal') ?>">Add Product</a></li>
<ul>
<li><a href="<?= site_url('user/proposal') ?>">Proposal Reports</a></li>
</ul>
<?php }?>
</ul></div>
</div>
<div class="span10 main_body">
<div class="row-fluid">
<p class="pull-right">
<strong>
<i class="icon-time"></i><span class="digital-clock">	
 <span class="hour "></span>
	   <span class="min"></span>
        <span class="sec"></span>
        <span class="meridiem"></span>
     	</span>
<span class=""><i class="icon-calendar"></i> <?= date('l, F d, Y'); ?> &nbsp;</strong>
</p>
</div>
 <?php if($this->ion_auth->is_admin()) {?>
<topheader>
<ul class="nav nav-pills">
 <li><a href="<?= site_url('user/tasks/create_task')?>"><i class="icon-plus"></i> Create Task</a></li> 
  <li><a href="<?= site_url('founder/holidays')?>"><i class="icon-plus-sign"></i> Create Holiday</a></li>
    
</ul>
</topheader>
<?php } elseif($this->ion_auth->is_client()) { } else {?>
<a href="#myModal" role="button" data-toggle="modal"><i class="icon-calendar"></i> Atttendance</a>
<a href="<?= site_url('user/tasks/create_task');?>"> <i class="icon-plus"></i> Create Task</a>
<br /><br />
<?php }?>







